<?php
class Mozg_Lib_Number implements Mozg_Lib
{
    public function __construct ()
    {

    }

    public function Format($num)
    {
		list($int, $decimal) = explode('.', $num, 2);
		$int = (int)$int;
		$decimal = (int)$decimal;

		return number_format($int, 0, ',', ' '). ($decimal ? ',' .$decimal : '');
    }

}

